package com.example.RuanJianKeShe.Bean;

import java.util.Date;

public class Tourist {
    private int id;
    private String account;
    private String userKey;
    private Date createTime;

    public Tourist(int id, String account, String userKey) {
        this.id = id;
        this.account = account;
        this.userKey = userKey;
        createTime = new Date();
    }

    public Tourist() {
        createTime = new Date();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUserKey() {
        return userKey;
    }

    public void setUserKey(String userKey) {
        this.userKey = userKey;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Tourist{" +
                "id='" + id + '\'' +
                ", account='" + account + '\'' +
                ", userKey='" + userKey + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
